<template>
  <div>
    <div>
      <h4>特殊病史</h4>
      <el-row>
        <el-col :span="8">
          <div>
            <span>特殊病史 </span>
            <el-select v-model="pgForm.special_disease_history_value" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="10">
          <div>
            <el-input
              placeholder="备注"
              v-model="pgForm.special_disease_history_textarea">
            </el-input>
          </div>
        </el-col>
        <el-col :span="8">
          <div>
            <span>妊娠期合并症 </span>
            <el-select v-model="pgForm.special_disease_history_value1" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="10">
          <div>
            <el-input
              placeholder="备注"
              v-model="pgForm.special_disease_history_textarea1">
            </el-input>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "special_disease_history",
  title: "特殊病史",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      options: [{
        value: '健康',
        label: '健康'
      }, {
        value: '其他',
        label: '其他'
      }],
      options1: [{
        value: '无',
        label: '无'
      }, {
        value: '糖尿病',
        label: '糖尿病'
      }, {
        value: '高血压',
        label: '高血压'
      }, {
        value: '其他',
        label: '其他'
      }],
      pgForm: {
        special_disease_history_value: '',
        special_disease_history_value1: '',
        special_disease_history_textarea: '',
        special_disease_history_textarea1: ''
      }
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
</style>
